{% extends "base.html" %}
{% block head %}
<title>{{query}} - 咩乐搜索!</title>
{% end %}
<!-- content -->
{% block content %}
<a href="/">咩乐首页</a> > 搜索商品
<h3>搜索 “<span style="color:#41c6f7">{{query}}</span>”， 共有<span style="color:#41c6f7">{{count}}</span>件物品</h3>

<div class="clearfix mt10" id="waterfall">
<div id="col1" class="col clearfix">
{% for val in  items[0:3]%}
{% module Item(val)%}
{% end %}
</div>

<div id="col2" class="col clearfix">
{% for val in  items[3:6]%}
{% module Item(val)%}
{% end %}
</div>
<div id="col3" class="col clearfix">
{% for val in  items[6:9]%}
{% module Item(val)%}
{% end %}
</div>

<div id="col4" class="col mr0 clearfix">
{% for val in  items[9:12]%}
{% module Item(val)%}
{% end %}
</div>
</div>
<div id="page_loading">数据正在加载中....</div>
<script>

$(function() {
	waterfall.start('/search?query='+encodeURI('{{query}}'));
});
</script>


{% end %}